package com.zhubayi.springcloud.alibaba.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.zhubayi.springcloud.entities.CommonResult;
import com.zhubayi.springcloud.entities.Payment;

/**
 * @author zhubayi
 */
public class CustomerBlockHandler {
    public static CommonResult handlerException1(BlockException e){
        return new CommonResult(200,"客户自定义的handler1",new Payment(2020L,"serial002"));
    }
    public static CommonResult handlerException2(BlockException e){
        return new CommonResult(200,"客户自定义的handler2",new Payment(2020L,"serial002"));
    }
}
